<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.ag.bean.TbTaskFeedback"%>
<%@page import="com.ag.bean.TbFeedbackAnnex"%>
<%@page import="com.ag.common.AnnexPath"%>
<%@page import="com.ag.lzw.common.DateHandeler"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>

		<base href="<%=basePath%>">
		<title>My JSP 'plan_detail.jsp' starting page</title>
		<link href="/ag/lzm/css/base.css" rel="stylesheet" type="text/css" />
		<link href="/ag/lzm/css/tab.css" rel="stylesheet" type="text/css" />
		<style type="text/css">
<!--
.planSpan {
	padding-left: 10px;
}

.planDiv {
	border: #999 solid 1px;
	margin-top: 15px;
	color: #666;
	padding-left: 20px;
	padding-top: 20px;
	padding-right: 20px;
	height: 50px;
	width: 80%;
	font-size: 16px;
	color: #666;
}
-->
</style>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="/ag/lzm/css/tab.css" rel="stylesheet" type="text/css" />

		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="/ag/lzw/js/feedbackdetail.js"></script>

	</head>
	<body>
		<table width="100%" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td height="30">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="15" height="30">
								<img src="/ag/lzm/images/tab_03.gif" width="15" height="30" />
							</td>
							<td width="1101" background="/ag/lzm/images/tab_05.gif">
								<img src="lzm/images/311.gif" width="16" height="16" />
								<span class="STYLE4">任务反馈详情</span>
							</td>
							<td width="281" background="/ag/lzm/images/tab_05.gif">
								&nbsp;
							</td>
							<td width="14">
								<img src="/ag/lzm/images/tab_07.gif" width="14" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="9" background="/ag/lzm/images/tab_12.gif">
								&nbsp;
							</td>
							<td bgcolor="#dceffd">
							<%
							 Object feedback = request.getAttribute("feedback");
						     TbTaskFeedback ttf2 = (TbTaskFeedback)feedback;
							%>
								<table width="99%" border="0" align="center" cellpadding="0"
									cellspacing="1" bgcolor="#84b1d3">
									<tr>
										<td height='38' bgcolor='#FFFFFF' class='planSpan'>
											反馈单号:
											<span class='planSpan' id='fbId'><%=ttf2.getTfId() %></span>
										</td>
										<td height='38' bgcolor='#FFFFFF' class='planSpan'>
											任务单号：
											<span class='planSpan' id='tId'><%=ttf2.getTbTask().getTId() %></span>
										</td>
									</tr>
									<tr>
										<td width='46%' height='38' bgcolor='#FFFFFF' class='planSpan'>
											反馈人姓名:
											<span class='planSpan' id='fbPeople'><%=ttf2.getTfPeople() %></span>
										</td>
										<td height='38' bgcolor='#FFFFFF' class='planSpan'>
											反馈时间：
											<span class='planSpan' id='fbTime'><%=DateHandeler.DateToString(ttf2.getTfTime()) %></span>
										</td>
									</tr>
									<tr>
										<td height='38' colspan='2' bgcolor='#FFFFFF' class='planSpan'>
											反馈内容：
											<span class='planSpan' id='tbContext'><%=ttf2.getTfText() %></span>
										</td>
									</tr>
									<%
									   
									    
										Object fbNote = request.getAttribute("tfNote");
										if (fbNote != null) {
											String s = (String) fbNote;
											out.println("<tr><td height='38' colspan='2' bgcolor='#FFFFFF' class='planSpan'>备注："
															+ "<span class='planSpan' id='fbNote'>"
															+ s
															+ "</span></td></tr>");
										}
									%>

									<tr>
										<td height="38" colspan="2" bgcolor="#FFFFFF" class="planSpan">
											反馈附件下载：
											<div id="fbAnnexDiv">
												&nbsp;&nbsp;

												<%
													Object fbObj = request.getAttribute("annex");
													Set<TbFeedbackAnnex> annexSet = null;
													if (fbObj != null) {
														annexSet = (Set<TbFeedbackAnnex>) fbObj;
														Iterator<TbFeedbackAnnex> it = annexSet.iterator();
														while (it.hasNext()) {
															TbFeedbackAnnex ttf = it.next();

															out.println("<div><img src='lzm/images/doc.gif'/><span class='moduleID' style='display:none;'>"
																			+ AnnexPath.TASK_FEEDBACK_PATH
																			+ "</span><span class='filename'>"
																			+ ttf.getTaName()
																			+ "</span><span class='fileid' style='display:none;'>"
																			+ ttf.getB()
																			+ "</span><a style='margin-left:10px;cursor:pointer;' class='fjURL'>点击下载</a></div>");
														}

													} else {
														return;
													}
												%>
											</div>
											&nbsp;&nbsp;
										</td>
									</tr>
									<tr>
										<td height="38" colspan="2" bgcolor="#FFFFFF" class="planSpan" align="center">
										    &nbsp;
										    <!-- <input type="button" value="返回" style="width: 70px; height: 30px;" id="back" /> -->
										</td>
									</tr>
								</table>
							</td>
							<td width="9" background="/ag/lzm/images/tab_16.gif">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="29">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="15" height="29">
								<img src="/ag/lzm/images/tab_20.gif" width="15" height="29" />
							</td>
							<td background="/ag/lzm/images/tab_21.gif">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="25%" height="29" nowrap="nowrap">
											&nbsp;
										</td>
									</tr>
								</table>
							</td>
							<td width="14">
								<img src="/ag/lzm/images/tab_22.gif" width="14" height="29" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
